How to solve equations using the quadratic formula